<?php
/**
 * 项目管理
 * User: Administrator
 * Date: 2022/3/14
 * Time: 15:01
 */

namespace app\api\controller;
use app\common\controller\Api;
use think\Db;
class Management extends Api
{
    // 无需登录的接口,*表示全部
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';

    public function list()
    {
        $page = input('get.page');
        $limit = input('get.limit');
        $list = Db::name('project_management')->order('id','desc')->paginate($limit,'',['page'=>$page]);

        if(!$list)
            $this->error('暂无数据');
        $this->success('',$list);
    }
}